package com.zimu.h.hexowriter.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class HexoWriterConfig {
    public static String HEXO_ROOT_DIR;
    public static String HEXO_POST_DIR;
    public static String GIT_BASH_PATH;
    @Value("${hexo.dir}")
    public void setHexoRootDir(String hexoRootDir){
        HexoWriterConfig.HEXO_ROOT_DIR = hexoRootDir;
    }
    @Value("${hexo.post.dir}")
    public void setHexoPostDir(String hexoPostDir){
        HexoWriterConfig.HEXO_POST_DIR = hexoPostDir;
    }

    @Value("${git.bash.path}")
    public void setGitBashPos(String gitBashPath){
        HexoWriterConfig.GIT_BASH_PATH = gitBashPath;
    }
}
